﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace LULSMS_WServices
{
    /// <summary>
    /// Summary description for WS_UserManager
    /// </summary>
    [WebService(Namespace = "http://LULSMS/Admin/UserManager")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class WS_UserManager : System.Web.Services.WebService
    {

        [WebMethod]
        public string createPatient(string userName, string password, string email, int citizenNumber, string fullName, string appName)
        {
            return LULSMS.UserManager.createPatient(userName, password, email, citizenNumber, fullName, "LULSMS");
        }

        [WebMethod]
        public string createSpecialist(string userName, string password, string email, int citizenNumber, string fullName, string specialty, string appName)
        {
            //TODO: 3 - Especialista e appName estáticos
            return LULSMS.UserManager.createSpecialist(userName, password, email, citizenNumber, fullName, "Specialist", "LULSMS");
        }
    }
}
